package br.com.sgac.tag;

import java.io.IOException;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.PageContext;
import javax.servlet.jsp.tagext.SimpleTagSupport;

public class Tag extends SimpleTagSupport {
	
	public void doTag() throws JspException {
		PageContext pageContext = (PageContext)getJspContext();
		String nome = (String) getJspContext().getAttribute("login");
		JspWriter out = pageContext.getOut();
		
		try {
			getJspContext().getOut().print(nome);
		} catch (IOException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}
		
		try {
			out.println("LOGINNN" + nome);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
